package com.xhl.shiro.modules.admin.service;

import com.gitee.fastmybatis.core.support.IService;
import com.xhl.shiro.modules.admin.entity.SysUserEntity;
import com.xhl.shiro.modules.admin.mapper.SysMenuMapper;
import com.xhl.shiro.modules.admin.mapper.SysUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("sysUserService")
public class SysUserService implements IService<SysUserEntity, Integer> {

    @Autowired
    private SysUserMapper sysUserMapper;
    /**
     * 查询用户的所有权限
     * @param userId  用户ID
     */
    public List<String> queryAllPerms(Long userId){
        return sysUserMapper.queryAllPerms(userId);
    }
}
